]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/bluetooth: Fix bluetooth placeholder text alignment
authorSebastian Keller <skeller@gnome.org>
Tue, 7 Mar 2023 19:02:10 +0000 (20:02 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 19 Mar 2023 12:32:55 +0000 (12:32 +0000)
The padding specified for .bt-menu-placeholder was overridden by the
more specific.popup-menu-item:ltr/rtl padding. Also the ornament, was
still taking up space, as well as the spacing between the ornament and
the text.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6434
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2687>

data/theme/gnome-shell-sass/widgets/_quick-settings.scss
js/ui/status/bluetooth.js

index 03fb77800bf0a220ed9188b4366ff6f856f43e5d..7c9accb1664f71b0efc841b8360c5faa34b92ae6 100644 (file)
   .popup-menu-icon { -st-icon-style: symbolic; }
 }
 
-.bt-menu-placeholder {
+.bt-menu-placeholder.popup-menu-item {
   @extend %title_4;
   text-align: center;
 
index a5d6451ca703f1a3d59dcfa25acfaa3abbbe468f..8f1d82a94ea3d1989c1ccec65d74c6a1ac528a2c 100644 (file)
@@ -252,6 +252,7 @@ class BluetoothToggle extends QuickMenuToggle {
             ellipsize: Pango.EllipsizeMode.NONE,
             line_wrap: true,
         });
+        this._placeholderItem.setOrnament(PopupMenu.Ornament.HIDDEN);
         this.menu.addMenuItem(this._placeholderItem);
 
         this._deviceSection.actor.bind_property('visible',